<html>
    <head>
    <meta charset="UTF-8"/>
    <meta name="Keywords" content=""/>
    <meta name="Description" content=""/>
    <title>Directories</title>
    <link type="text/css" href="css/all.css" rel="stylesheet" /> 
    <style>
	.breadcrumbs{width:980px;text-align:left;margin-top: 20px;margin-bottom: 10px}
	.breadcrumbs p { text-transform: uppercase; font-weight: bold; }
    .breadcrumbs a { display:inline-block;padding:1px 17px 0 0;margin-right:10px;color:#1D2339;}
	.directoy{width:619px;}
	.tab-content { text-align: left; height: 192px; margin-bottom: 10px;padding-top: 15px }
	.tab-content h5 { font-size: 22px; color: black; padding: 10px 0 6px 0; font-weight: 400; font-style: normal; cursor:pointer; }
	.tab-content .box { width: 660px;height:150px; }
	.tab-content .pad_box { font-size: 13px; line-height: 20px;height:158px;width:450px; overflow:hidden;  word-wrap:break-word; }
	.tab-content .boxImg { width: 186px; height: 186px; margin-right: 20px; }
	.tab-content a.link { line-height: 34px; font-size: 16px; cursor: pointer; color: #A10000; text-decoration: underline; display:block; }
	.banner{width:307px;}
	.banner .ad{margin-top:15px;}
</style>
    </head>
    <body>
      <#include "${base!}/front/header.html"/>
       <div class="main" style="height:690px;margin-bottom:25px;">
       <div class="wrap">
           <div class="fleft breadcrumbs">
              <p>
                <a href="#">Directoies &gt;</a> <span class="access"></span>
              </p>
            </div>
       		<div class="fleft directoy">
	       		<#if page.list??>
				<#list page.list as company>
		              <div class="tab-content" style=" height:148px; border-bottom: 1px solid rgb(222, 222, 222);">
		                  <!-- <h5 onClick="location.href='${base}/front/directoryshow.html?id=${company.companyId}'">
		                  	<span class="shop-ic"> 
		                  		<#if company.iconId != null>
									<img src="${base}${company.icon.imgUrl}" title="${company.companyName}" width="46" height="46" onerror="this.src='images/mc_card_logo_4.grey.png'"/>
								<#else>
			                  		<img src="images/mc_card_logo_4.grey.png" title="${company.companyName}" width="46" height="46" />
								</#if>
		                  	</span>
		                  	${company.companyName}
		                  </h5> -->
		                  <div class="box"  style=" height:119px">
		                      <div class="fleft boxImg" style=" height:136px;text-align:center"><img src="${base}${company.imgUrl}" width="125px" height="125px" onerror="this.src='images/nopicture.jpg'"  style="padding:1px;border:1px #dedede solid;"></img></div>
		                      <div class="pad_box" style=" height:105px">
		                      <div style="vertical-align:top;">
		                      	<span style="width:37px;float:left;"><b></b></span>
		                      	<span style="float:left;display: inline; width: 442px;font-weight:bold;vertical-align:top;">${company.companyName}</span>
		                      </div>
		                      <div>
		                      	<span style="width:37px;float:left;"><b>Add:</b></span>
		                      	<span style="float:left;display: inline; width: 402px">${company.address}</span>
		                      </div>
		                      <div>
		                      	<span style="width:37px;float:left;"><b>Tel:</b></span>
		                      	<span style="float:left">${company.telephone}</span>
		                      </div>
		                      <div class="pad_box" style="font-size:13px;height:58px;width: 400px;">
		        
						  
			 						  <#if company.description??>
						        		<#if ((company.description)?length>140)>
						        			${(company.description)[0..140]} …
						        		<#else>
						        			${company.description}
						        		</#if>
						        	</#if>	
		                      </div>
		                      </div>
		                      <a href="${base}/front/directoryshow.html?id=${company.companyId}" class="link"  style="font-size:13px"> More >> </a>
		                  
		                  </div>
		                  
		                  
		              </div>
		       
				</#list> 
				</#if>
              <!-- <div class="tab-content">
                  <h5 onClick="location.href='directoryshow.html'"><span class="shop-ic"> <img src="images/mc_card_logo_4.grey.png" title="仙草南路" width="46" height="46" /> </span>Lorem ipsum dolor sit amet consectetur adipisicing elit</h5>
                  <div class="box">
                      <div class="fleft boxImg"><img src="images/tempyl.jpg" width="189px" height="135px"/></div>
                      <p class="pad_box">
                      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit.
                      </p>
                      <a href="directoryshow.html" class="link">More >></a>
                  </div>
              </div>
              <div class="tab-content">
                  <h5 onClick="location.href='directoryshow.html'"><span class="shop-ic"> <img src="images/mc_card_logo_4.grey.png" title="仙草南路" width="46" height="46" /> </span>Lorem ipsum dolor sit amet consectetur adipisicing elit</h5>
                  <div class="box">
                      <div class="fleft boxImg"><img src="images/tempyl.jpg" width="189px" height="135px"/></div>
                      <p class="pad_box">
                      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit.
                      </p>
                      <a href="directoryshow.html" class="link">More >></a>
                  </div>
              </div> -->
              <form action="${base}/front/directories.html" method="get" name="queryForm">
	              <div class="fright pages">
	              	<a href="javascript:firstPage()">&lt;&lt;</a>
	              	<a href="javascript:prePage()">&lt;</a>
	              	<!-- <a href="#">1</a><a href="#">2</a><span class="cur">3</span><a href="#">4</a><a href="#">5</a> -->
	              	
	              	<#list lstPage as pageNo>
	              		<#if pageNo == pageNumber>
	              		<span class="cur">${pageNo}</span>
	              		</#if>
	              		<#if pageNo != pageNumber>
	              		<a href="javascript:goPage('${pageNo}')">${pageNo}</a>
	              		</#if>
	              	</#list>
	              	
	              	<a href="javascript:nextPage()">&gt;</a>
	              	<a href="javascript:lastPage()">&gt;&gt;</a>
	              		              	
	              	<a href="javascript:jump()"><input type="text" style="width:40px" id="txtPage" onkeydown="jump()"/> Go</a>
	              	
	              	<input type="hidden" name="pageNumber" id="hidPageNumber" value="${pageNumber}"/>
	              </div>
              </form>
            </div>
            <div class="fright banner">
            
             <@cms_banner_list >
          	    
			      <#list directories_banner_list as banner> 
 					 <div class="ad"><a href="${banner.link!'#'}"><img src="${banner.url!(rc.getContextPath()+'/front/images/card.gif')}" width="305px" height="167px"/></a></div>
				  </#list>
 
 
            </@cms_banner_list>
 
            </div>
       </div>
       </div>
       <#include "${base!}/front/footer.html"/>
       <script type="text/javascript">
       		function firstPage() {
       			document.getElementById("hidPageNumber").value = "1";
       			queryForm.submit();
       		}
       		
       		function prePage() {
       			document.getElementById("hidPageNumber").value = "${prePage}";
       			queryForm.submit();
       		}
       		
       		function nextPage() {
       			document.getElementById("hidPageNumber").value = "${nextPage}";
       			queryForm.submit();
       		}
       		
       		function lastPage() {
       			document.getElementById("hidPageNumber").value = "${lastPage}";
       			queryForm.submit();
       		}
       		
       		function jump() {
       			var page = document.getElementById("txtPage").value;
       			if (page) {
       				page = parseInt(page);
       				var lastPage = "${lastPage}";
       				if (page > lastPage) {
       					page = lastPage
       				} else if (page < 1) {
       					page = 1;
       				}
       				document.getElementById("hidPageNumber").value = page;
       				queryForm.submit();
       			}
       		}
       		
       		function goPage(pageNumber) {
       			document.getElementById("hidPageNumber").value = pageNumber;
       			queryForm.submit();
       		}
       </script>
</body>
</html>